package com.example.demo.entify;

public class User {
	private Integer id;
	
	private Integer age;
	private String username;
	private String password;
	private String tel;
	private  String sex;
	private String salt;
	private Role roles;
	private  String addr;
	private String powername;
	private Integer userstate;

	public String getPowername() {
		return powername;
	}

	public void setPowername(String powername) {
		this.powername = powername;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getSalt() {
		
		
		
		return salt;
	}

	public void setSalt(String salt) {
		this.salt = salt;
	}

	public Role getRoles() {
		return roles;
	}

	public void setRoles(Role roles) {
		this.roles = roles;
	}

	public String getAddr() {
		return addr;
	}

	public Integer getUserstate() {
		return userstate;
	}

	public void setUserstate(Integer userstate) {
		this.userstate = userstate;
	}

	@Override
	public String toString() {
		return "User [id=" + id + ", age=" + age + ", username=" + username + ", password=" + password + ", tel=" + tel
				+ ", sex=" + sex + ", salt=" + salt + ", roles=" + roles + ", addr=" + addr + ", powername=" + powername
				+ ", userstate=" + userstate + "]";
	}

	public void setAddr(String addr) {
		this.addr = addr;
	}


	public User(Integer id, Integer age, String username, String password, String tel, String sex, String salt,
			Role roles, String addr, String powername, Integer userstate) {
	
		this.id = id;
		this.age = age;
		this.username = username;
		this.password = password;
		this.tel = tel;
		this.sex = sex;
		this.salt = salt;
		this.roles = roles;
		this.addr = addr;
		this.powername = powername;
		this.userstate = userstate;
	}

	public User() {}

	

}
